package util;

import java.io.Serializable;

public class Pair<A, B> implements Serializable{

    private static final long serialVersionUID = 1L;

	private final A first;
	private final B second;

	public Pair(A first, B second) {
		super();
		this.first = first;
		this.second = second;
	}

	@Override
	public String toString() {
		return "(" + this.first + "," + this.second + ")";
	}

	public A getFirst() {
		return this.first;
	}

	public B getSecond() {
		return this.second;
	}
}
